import React from 'react';
import {Link} from 'react-router-dom'
import '../../style/itemChat.css'

class itemChat extends React.Component {
    constructor(props) {
        super(props);
        this.state = {}
    }

    render() {
        return (
            <Link to={{
                pathname: '/talk',
                search: '?sort=name',
                state: {fromDashboard: true}
            }}> <div className="itemChatItem">

                    <div className="itemChatItemLeft">
                        <img className="itemChatItemAvatar"
                             src="http://pic2.zhimg.com/50/v2-fb824dbb6578831f7b5d92accdae753a_hd.jpg" alt="avatar"/>
                    </div>
                    <div className="itemChatItemRight">
                        <div className="itemChatItemRightName">
                            <label>刘江</label>
                            <span className="itemChatItemRightNameRightTime">晚上8:47</span>
                        </div>
                        <span className="itemChatItemRightMsg">Abb:我是消息</span>
                    </div>
            </div>
            </Link>
        )
    }

}

export default itemChat;
